Judges rule on state abortion restrictions, shape Roe impact