Sounds blatantly illegal and unconstitutional, the equivalent of an ex post facto law.
Constitutional, civil rights and personal injury lawyers should be having a field day right now. Potential cases all over the place.