The opinion, written by Justice Clarence Thomas, invalidates New York’s requirement for people to show “proper cause” to get public carry gun licenses.