The case before the conservative-dominated court involves bans in Cook County, Illinois, and the northeast state of Connecticut on rifles labeled as assault weapons