The proposal would allow police to help with deportations, but the city’s law department says it violates state law.