Tech companies are moving into Pittsburgh, attracted by the city’s affordability, bringing with them new jobs and challenges, as some longtime residents struggle with housing and feeling left behind.