It's unlikely that Putin had no idea of the immense costs that he and Russia as a whole would incur in undertaking this war, so he likely believed the alternative would have been even more costly.
From the darkened cinema to the football field to the airport screening line, the US government inflated the actual threat of terrorism and the necessity of an aggressive military response.