Prime Minister David Cameron’s government was backed by 397 lawmakers compared to 223 who opposed the bombing, giving him the strong mandate he said was essential for military action.