NEW YORK— A federal court in New York on Friday upheld the state’s ban on sales and in-store displays of elephant and mammoth ivory and rhino horn — rejecting claims that the ban was unconstitutional.