India, U.S. work out impasse to global trade deal