The Supreme Court may soon weigh in on whether people younger than 21 have the right to buy handguns, a decision that could upend decades-old federal restrictions and reshape the nation’s gun laws.