New York University said Thursday that it will cover tuition for all its medical students regardless of their financial situation, a first among the nation’s major medical schools and an attempt to expand career options for graduates who won’t be saddled with six-figure debt.

School officials worry that rising tuition and soaring loan balances are pushing new doctors into high-paying fields and contributing to a shortage of researchers and primary care physicians. Medical schools nationwide have been conducting aggressive...