Courts look at the nature of the contractual term being restricted and the government’s purpose for the restriction. If a restriction serves a significant and legitimate public interest without being overly broad or vague, it is likely to be considered permissible.
For example: Restricting contracts that impose severe underpayment for services might be permissible to prevent exploitation and ensure fair wages.