Judge Gives UBS and U.S. Time to Seek a Settlement