WASHINGTON — Intelligence showing that the Islamic State is developing a bomb hidden in portable electronics spurred the United States and Britain on Tuesday to bar passengers from airports in a total of 10 Muslim-majority countries from carrying laptop computers, iPads and other devices larger than a cellphone aboard direct inbound flights, two senior American counterterrorism officials said.