One common mechanism is the use of third-party staffing agencies who are regular employers of the staffers for the contract period the way the payroll company upthread recommended.
Direct contract-to-hire is also done, but its fairly frequently not done legally, which is why it gets additional scrutiny.