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