The investigation has expanded to other states after dozens of Philadelphia police officers were accused of posting offensive statements on social media.