Refugee health care fight cost feds $1.4 million in legal fees