In an at-will state like CA, that would be a restraint of trade. You can always hop to another job with rival company. Also, to allow both hospitals to come to an agreement seems to encourage a certain collusion by management in the face of acceptable labor practices. (I thought that Silicon Valley tech companies got slapped over something like this.)
But I also wonder if a CA judge would also be fooled by such scary lawyer words during a pandemic?