Costs may not be taxed to the defendant in a criminal action or proceeding begun or prosecuted in any of the courts of the state unless otherwise ordered by supreme court rule.