Russia signed a long-term agreement on Friday to greatly enlarge its military presence in Syria, more than doubling the space for warships in Russia’s only Mediterranean port and securing rights to an air base that may already be adding a second runway.