Texas Attorney General Greg Abbott and Republican lawmakers lost a battle in federal court against the U.S. Department of Justice (DOJ) after a measure to…