We’ve had Stop and Search powers for years which basically gave the police carte blanche to stop anyone who “looked funny” in an attempt to, yup, fight terrorism.
Of course, these powers were used predominantly on brown natives to look for weapons and drugs, so the authorities don’t really have a problem with random racial profiling.