Its really nothing wrong, the officials did what they are instructed to do. Please god sake don't blame the system.
It's you, an individual messed up the things and trying to blame my country. Ty this Mr.Shriwardhankar, while returning back from India don't take your green card & passport and check what happens.
Stop this idiotic stuff and stop blaming my Country. Atleast from hereafter be smart and try to take the important stuff you need before leaving to airport.
I don't know how come the people in US airport allowed this people to board a aircraft without even having a destination country vias, if i do the same thing in India, i would have been returned back in the ticket counter itself.