A Zimbabwean court has ordered doctors on a 40-day strike over pay to return to work within 48 hours, after a ruling that their boycott was illegal.