On guns, abortion and voting rights, Trump leaves lasting mark on U.S. judiciary