Unfortunate for you. Canada isn’t the best datapoint as Americans aren’t required to have a passport to visit Canada ... so long as you can get in front of a customers officer and convince them you’re American and admissible to Canada, you’re pretty much good to go. I guess the emergency passport gave them enough confidence of your American citizenship to allow entry.