Governor Charlie Baker’s longstanding push to end the practice of putting homeless families in motels at state expense has resulted in Massachusetts illegally denying shelter to the Commonwealth’s most vulnerable, a lawsuit from five mothers struggling with homelessness alleges.