Headlines that cheer an “all-women spacewalk” and programs named “Coding for Girls” are meant to let girls know they belong. Research suggests that many people interpret those labels much differently.