Regulations designed to protect consumers can reshape competitive dynamics in ways lawmakers don’t anticipate.