If you say that something has happened or been done for better or worse, you mean that you are not sure whether the consequences will be good or bad, but they will have to be accepted because the action cannot be changed.
I married you for better or worse, knowing all about these problems.
This person is a badass who sticks closer than a brother, as long as you don’t cross him.
I believe no better friend, no worse enemy is a motto for the US Marines.