A Michigan House committee has approved legislation that would bar employers and universities from asking prospective employees or students for access to their social media and personal email accounts.