Police groups worry that officers with a misdemeanor conviction on their record could lose their jobs because of their inability to carry a gun. They have challenged the law in federal court, contending that the gun ban should not apply to convictions obtained before the law was in place.