31 but the people of Israel, who pursued the law as the way of righteousness, have not attained their goal.

Read Romans 9:31 Using Other Translations

But Israel, which followed after the law of righteousness, hath not attained to the law of righteousness.
but that Israel who pursued a law that would lead to righteousnessdid not succeed in reaching that law.
But the people of Israel, who tried so hard to get right with God by keeping the law, never succeeded.