The House is poised to pass legislation this week that would legalize marijuana, just the latest example of the swiftly changing attitudes on drug laws that marks a near reversal from the Reagan-era war on drugs that also reverberated through the 1990s.