8:50 AM PT -- Miller was arrested by FBI agents over an Amtrak bomb threat he reported back in March.
According to the FBI docs, Miller called 911 on March 18 while he was riding an Amtrak train from D.C. to NYC ... and reported a woman with brown hair and a scarf "has a bomb in her bag." An Amtrak police officer called back Miller who added ... the woman kept checking the bag and seemed to want to get off the train and leave it behind.
The officer asked Miller if he suffered from mental illness ... which he denied, and said, "This is the first time I've ever made a call like this before. I am worried for everyone on that train. Someone has to check that lady out."
As it turns out ... Miller gave cops the wrong train number, and as a result a different train was stopped in Connecticut, evacuated and searched ... causing massive Amtrak delays. Meanwhile, Miller was on his train to NY.
According to docs, Miller was removed from the train in NYC because he was intoxicated. The train attendant said Miller had consumed 2 glasses of wine and 2 double Scotch and sodas. The attendant also reported Miller had "exchanged profanity" with a woman in the First Class car -- and he did not back up Miller's account of the woman's suspicious behavior.
The woman told police Miller was being loud and belligerent on the train, and had made a comment about her hair. She admits they had an argument.
After speaking to all parties involved, cops determined Miller had a grudge with the woman -- and made the false report about her having a bomb as a result.
In the docs, the feds say Miller's mayhem caused 926 man hours-worth of delays, not to mention disrupting several law enforcement agencies and bomb squads in Connecticut and New York.
The FBI obtained an arrest warrant which it executed Monday night when Miller flew into LaGuardia Airport.
T.J. Miller is in serious trouble with the federal government after getting busted at an NYC airport ... TMZ has learned.
We got video of the ex-"Silicon Valley" star getting hauled out of LaGuardia Airport Monday night around 10 PM. Port Authority cops and FBI agents took him into custody.
According to docs, obtained by TMZ, Miller was booked for providing false information or pulling a hoax with federal authorities. He'd been in Canada over the weekend doing several stand-up comedy gigs.
Miller was released from custody Tuesday morning after posting $100,000 bond.