I'm not trying to be a jerk - it's just that the legally depends on the particular specifics. Sounds illegal to me at first pass, but if government contacting is involved or other special cases it gets more complicated.
You should probably make a report to the EEOC if you can't consult legal. You should also ask your engineering VP if they consulted legal before instituting the requirement.