Arizona, immigration groups spar in court over police stops