(4) After final hearing the court shall enter a judgment affirming or modifying the order of the director as the court considers proper, and may assess such costs as it may consider just except that a judgment for costs may not be rendered against the United States.