Whatever the rules may be for companies paying people to work on something they do for the government, there are plenty of jobs that are never advertised in the US and are then filled with people from overseas.
These were NOT government jobs, they were run through the state unemployment offices as we were considered the US employment system.