Twitter on Tuesday filed a lawsuit challenging orders from the Indian government for the social media company to remove content under legislation passed last year.