Romans 9:30-32: Attaining righteousness only through faith

Romans 9:30 What shall we say then? That Gentiles, who did not pursue righteousness, have attained to righteousness, even the righteousness of faith;
31 but Israel, pursuing the law of righteousness, has not attained to the law of righteousness.
32 Why? Because they did not seek it by faith, but as it were, by the works of the law. For they stumbled at that stumbling stone.