Qualified immunity protects government employees from being sued in an individual capacity, it does not protect the government itself from being sued. The whole point of QA is to make individuals sue the government body that wronged them rather than the specific employees.
When the government doesn't want to be sued, it invokes sovereign immunity.
This is by the way why the government is inherently corrupt. Because tyrants don't have to pay for the crimes they commit, and public sector employees are protected by unions from being fired and blacklisted.
Qualified immunity protects government employees from being sued in an individual capacity, it does not protect the government itself from being sued. The whole point of QA is to make individuals sue the government body that wronged them rather than the specific employees.
When the government doesn't want to be sued, it invokes sovereign immunity.
This is by the way why the government is inherently corrupt. Because tyrants don't have to pay for the crimes they commit, and public sector employees are protected by unions from being fired and blacklisted.