ICE agents falsified records and gave false or misleading testimony after illegally arresting two men, a federal judge found.