"what Yahweh judged to be right" or "what Yahweh considered to be right". See a similar phrase in 2 Chronicles 14:1.