BERLIN—A German court on Friday convicted a military officer who posed as a Syrian asylum-seeker of plotting to attack prominent politicians, sentencing him to 5.5 years in prison. The Frankfurt state court convicted the defendant of preparing a serious crime meant to endanger the state, violations of weapons laws, and fraud, German news agency dpa…