Government agencies that decide who may work in a country, issue and police work visas and sponsor licenses, and set the right-to-work checks every staffing firm must run before a placement starts.
Immigration authorities are one player in the staffing & recruiting industry, and an industry of their own, with their own suppliers, customers, software, regulators, and money flows. This full map is on the roadmap.
Meanwhile: how immigration authorities fit into staffing & recruiting