Justice Stephen Breyer said in a Supreme Court dissenting opinion Thursday that a ruling by the conservative majority will harm states’ ability to fight gun violence.