Why doesn't the icon change everywhere?

Are you trying to change it specifically for that icon location and state? If you are still trying to change the icon globally the code you originally posted is still correct:

api.replaceIcon('far-check-square', 'thumbs-up')
api.replaceIcon('check-square', 'thumbs-up')

That checkmark icon next to “Kudos” is not the default, so might you have conflicting code somewhere?