A bill extending security protections to immediate family members of U.S. Supreme Court justices has cleared the Senate.