In the US, people consider any public sector job to be working in/for the government. Judges, Legislators, the president, TSA security, Park Rangers, Cops, Clerks at the driver’s license office, etc. would all be considered government roles. Sometimes you need to clarify if you mean federal government or state government.
The president, his staff, and his political appointees are called the administration.