Cop adopts homeless woman's daughter