This is a false assumption. Governments (executive branch) can be prosecuted for illegal behavior.
And their defense claims US has SSN which is equivalent of Aadhaar why anyone can see ludicrous
And still Aadhar requirement is not removed for filing income tax return (which results in massive penalities)