The court said it would be forced to pass directions on Friday if the governments could not decide and take steps to improve the air quality.