Italy Agrees to Take Migrants, Ending Standoff With Malta