Never Worked in US: Qualifying Through Spouse

How people who never worked in the US can qualify for Medicare through a spouse's work history.