The Department of Homeland Security (DHS) has finalized a rule that narrows how discrimination is penalized across federal grants.