Physicians trained outside the U.S. will have a new path to practice medicine in Massachusetts. State officials are setting up a program that will provide medical licenses, with some oversight, for doctors credentialed in other countries. Lawmakers hope the move will ease medical care shortages, particularly in primary care.