Gov. Dannel Malloy has promised to move more than 5,000 poor and disabled patients out of nursing homes in five years. But he says there’s an obstacle — a state law that says only nurses can give medications to people in the Medicaid system living at home.