WASHINGTON—The ouster of Attorney General Jeff Sessions by President Donald Trump on Wednesday drew sharp criticisms from both Democrats and Republicans, who warned the latter against…