For over a decade, federal health officials have recommended the practice, known as expedited partner therapy. It is allowed in most states, but many doctors don’t do it — either because of legal or ethical concerns, or because they are unaware of it.