Courts' role in deciding state spending is questioned