NEW YORK (Reuters) - A U.S. judge signaled on Tuesday that UBS AG may escape liability for at least a portion of an estimated $2.1 billion of losses stemming from residential mortgage-backed securities it sold in 2006 and 2007 before the U.S. housing market collapsed.