A new method that uses stem cells to grow organs could help fight diseases like diabetes, a study says.