"Under what rule would shortening the half-shafts be legal? "

Never said it was legal, just telling what people do to avoid the problem.

Several places sell the shortened shafts.

I prefer the cheaper/easier method of raising the car, helps the geometry with bump steer issues.

Oh ya, its legal too.