The Supreme Court appeared skeptical of whether state and local governments have the ability to ban AR-15s and other semiautomatic rifles.