The government's failing to keep its pledges will earn the distrust of all the other nations in the alliance.
I don't understand why the sentence above uses "its" instead of "it's"
Does "it's" only means "it is"?
Yes, this is an exception to the apostrophes for possession rule.
its = belonging to or associated with it
it's = it is