Automated red-light and speed enforcement cameras will no longer be eligible for certain federal grants except in school or work zones.