Controversial plans to redevelop the derelict Dudley Hippodrome into a test site for driverless cars have been approved by the local council.