Upon the hearing of objections to the expense or the apportionments thereof the court shall determine the expense and its apportionment as the court deems equitable and shall enter judgment against the parties in favor of the board in the amounts apportioned to them.