The only reason it was a bad decision is because the Bills needed a TD, not a FG, to win. Assuming the Texans actually ran the ball 3 straight times (which they should have done) the Bills would have had no timeouts left. Without any TOs it's unlikely the Bills could move the ball all the way downfield and put the ball in the endzone. The punting strategy only worked because the Texans decided to throw the ball on 3rd down, thereby saving the Bills a timeout. If they had only needed a FG it would have been the correct call as 1:30+ is plenty of time to move the ball into FG range.