A council has overturned a decision to reject plans to build hundreds of homes on a former showground and speedway track.