Man gets life in prison for killing girlfriend's daughter