Costa Rica’s Congress has fallen short of the supermajority required to strip President Rodrigo Chaves of immunity in order to prosecute him on corruption charges.