UnitedHealth Group and Amedisys agreed to extend the deadline to complete their $3.3 billion merger, after the Department of Justice moved to block the deal.