24-hour shift for medical residents quashed