The acting head of the U.S. Department of Homeland Security has ordered an investigation into reports that Border Patrol agents have been posting offensive anti-immigrant comments and threats against lawmakers on a private Facebook group.