The U.S. Supreme Court agreed on Tuesday to hear a challenge to the legality of state restrictions on assault-style rifles, giving the justices another chance to expand gun rights in a case that involves a type of weapon often associated with mass shootings.