Non-citizens support question

DHS and other government offices require their employees to take an oath of office.
Are they violating their oath of office and code of conduct by prioritizing non-citizens?