If the issue were about abortion I agree that a compromise based on viability would be my preferred resolution,
But abortion is not covered anywhere in the Constitution.
Congress can act and so can the States... but the Courts have no legislative powers.
Roberts probably see it this way but wants to keep the Court out of hot button controversies.