The Trump administration is preparing to replace its controversial travel ban—which sought to bar almost all travel to the U.S. from six countries—with more targeted restrictions affecting a slightly larger number of countries, people familiar with the process said.