Only because it was struck down by courts. The US government did attempt it, and even told employers to abide by it while they appealed (before it was struck down again).
https://thehill.com/homenews/administration/589657-biden-cal...