With Congress potentially closing in on a bipartisan gun deal after last month’s run of mass shootings, the Supreme Court soon will issue a ruling that could make it easier for people in at least a half-dozen states to legally carry loaded firearms in public.