As long as bills are allowed to be hijacked and completely repurposed, the letter of the law appears to have been followed
I'm not aware of the Supreme Court ever striking down a law because of the means
under which it was passed. They concern themselves with the final result.
(I could be wrong on this, and if so, Al's the guy to ask.)