The critical Court observation appears to be:
Without their presence the employer would be in breach of its obligations to operate the homes in an appropriate manner and that would jeopardise its funding.
At a push I daresay that a good barrister can put up an argument for overnights to be paid!!
The synopsis you posted does not support that reasoning.