An H-1B worker stuck in India for 18 months lost a lawsuit seeking faster action on his pending visa application.