"Under international law, when international peace is under threat and genocide is being committed, states and corporations have the duty to act. Among the measures they can resort to are embargoes as a form of economic pressure to stop violations of international law."
https://www.aljazeera.com/opinions/2024/4/3/the-legal-case-for-imposing-embargoes-on-israel