Why, yes, they can't invalidate the warranty due to unauthorized repairs or modifications that didn't cause the problem. However, what has been reported is that they've designed a system such that any (or at least most) unauthorized repairs will cause a problem... which, then, will invalidate the warranty, at least as far as that problem is concerned. If the battery puffs up after your SSD replacement causes the system to refuse to boot, they'll still be on the hook for the battery, but they'll have no obligation to make the system bootable again.
We'll have to wait and see if they've actually implemented what was reported, but it's not a violation of MMWA if they did... even if it's shitty and underhanded.