Frequently Asked Questions - H-1B2
DOD (Department of Defense) project visas.
See clip from Attorney Rajiv S. Khanna's conference call video that addresses this question.
This FAQ is on “filing amendment for pending H-1B petitions”.
If this is all what happened, then the govt. has acted illegally. There is no question in my mind about it.