The rule is one of the final pieces of President Joe Biden’s crackdown on junk fees that drive up consumer costs without providing visible benefits.