Through a lawsuit filed on Thursday in California federal court, Twitter seeks to stop the Department of Homeland Security and U.S. Customs and Border Protection from compelling production of records in accordance with a summons.