The government on Wednesday allowed firms like ONGC and Vedanta to sell locally produced crude oil to any Indian refinery for turning it into fuel, such as petrol and diesel, as it deregulated one of the last few avenues that were still under its control.