The court also stopped the unions and their members or associates from removing or confiscating the mobile devices installed in the app-based cabs.
It also restrained them from staging any demonstration or causing any commotion or violence within 500 metres of the offices of Ola and Uber in the national capital.
The court passed the order after the two app-based cab companies said that efforts to settle the dispute with the two unions - the Sarvodaya Driver Association of Delhi (SDAD) and the Rajdhani Tourist Drivers' Union - by mediation have failed.
The court had also asked Delhi Police to ensure safety of the drivers working for the two companies. It had also said that their vehicles should not be stopped or blocked from plying and should not be damaged.
The pleas were moved after hundreds of drivers of Uber and Ola went on an indefinite strike from February 10 in Delhi-NCR to protest against "low fares" and "lack" of basic amenities from the app-based cab companies.
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.