[1] http://www.examiner.com/article/what-modifications-will-void...
[2] http://en.wikipedia.org/wiki/Magnuson%E2%80%93Moss_Warranty_...
Take a look at Apple's warranty: they claim to provide only 1 year of warranty, while European law requires them to provide two years. They will repair your device in the second year (it's the law!). However, I bet their confusing labeling etc. will cause a lot of people to believe their warranty has expired. Those people will either not ask for a free repair or pay their shop to repair the device.
Problem is, the FTC requires you to have a lawyer file a lawsuit and coordinate your legal costs and representation with the FTC, generally requiring a lawyer specifically dealing in lemon law cases. I've been down this path with a defective cell phone (HTC Touch Pro) and trying to get my carrier to replace it, and it's impossible to find a lemon law lawyer that deals in anything besides used car sales.
As always, the law is well intentioned but enforcement is next to impossible, just like you said.
There's no link between a physical hardware failure and flashing an aftermarket ROM, and as such they would be really hard pressed to have a legally valid reason to deny you coverage for the micro-USB port being defective.
There's a lot of grey area - if your display goes out, maybe it's because of software - but something purely physical is pretty clear cut.
On an unrelated note: LG noticed that I was running a custom ROM but didn't make any problem of it, while technically they can claim that such an action voids my warranty.