Isn’t the CDC requiring the tests for passengers to get back into the US? It’s not a law, but it seems to have the same effect.

CDC Order Link