Councillors have approved nearly £24 million to revamp a shopping centre, including turning a former food court into leisure space.