Appeals court affirms state regulation of billing