U.S. court rules Madrid museum can keep painting stolen by Nazis