you need to get one thing straight, the embargo on japan gave them two options

1. stop the war
2. attack USA

also hitler declared war on USA saying in a speech it was in retaliation to the 5 month embargo on germany and german goods and illegal freezes of german assets in america