PHOENIX — Contending that cities are ignoring the laws they pass, lawmakers voted Wednesday to let the attorney general direct that their state aid be withheld until they comply.