"who tried to obey a law in order to get righteousness" or "who tried to be righteous by obeying a law"
"could not keep that law" or "did not succeed at keeping that law"