Re Dobbs vs. Jackson Women's Health Organization, Justice Alito wrote the majority opinion, joined by Justices Thomas, Gorsuch, Kavanaugh, and Barrett.
So you are correct, it wasn't only men, but pretty damn close. And we got to read the result of what happened in the secret room.