Supreme Court scrutinizes state, local gun control