Barack and Michelle Obama have signed a multiyear deal with Netflix to produce and star in documentaries and series, which may cause a minor boycott with Republicans.