A derelict former mini-golf course is set to be transformed into a £1 million skatepark after plans were approved.