Vijay and Vaishali Prabhu, you should be ashamed on yourself as you are yelling and cursing on Indian consulate for their duties and responsibilities.
You yourself did a foolish job for not having and brining all the documents along with you. When you said, both of you are IT professional and have US Green card then how can you do such a silly mistake of not carrying any/all immigration documents with you even a li'l educated person will also take when travel overseas.