A new car park is set to be created next to a mosque after a council agreed to sell a patch of land for £40,000.