State lawmakers late Friday were poised to hand a victory to Mayor Adams as they agreed to extend his control of the New York City public schools by two years, with some adjustments to how the nation’s largest school district is governed. The deal includes slight changes to the city’s Panel for Educational Policy that…