Theresa May can go to bed happy, sort of. Yes, 188 members of her own party voted against her motion, but she avoided another major defeat and can now lay the ground for a third meaningful vote on her Brexit deal – which will take place before next Wednesday, March 20.
Why before then? Because the very next day, May travels to Brussels for the EU Council Summit, where she will meet with all of the other 27 EU leaders for the final time ahead of Brexit. Or, at least, for the final time ahead of Brexit *as things stand*.
It's at this summit that May will request the extension of Article 50, thereby delaying Brexit.
For how long depends on what happens in meaningful vote 3. If she overturns her 149 vote loss of Tuesday, then the request will be for Brexit to be delayed until June 30. If she loses for a third time, then goodness knows what happens. And if either request is declined, then Brexit happens on March 29, with or without a deal.