I'm not following your first question do you mean to say why is mandating coverage legal?
My understanding of the mandate was that(theoretically) by more people being insured the population be healthier and that would someone how drive prices down. Obviously that's a farce as prices go up year over year. It would be interesting to see how much more basic procedures would be now after being adjusted for inflation compared to what they were in say the 90's.