Such laws, if existed, would be of limited help. Would you enjoy to continue working when your boss badly wants to fire you, and your colleagues badly want to have you fired, but they can't by the law? How soon would you leave by yourself? Being fired usually at least involves some severance pay.
These laws could help though if it's just your boss who wants to fire you, but most of your colleagues would like to support you, even if silently.