Dubai's Roads and Transport Authority (RTA) has granted permission to two autonomous driving firms, Pony.ai and WeRide.