A waterfront-altering redevelopment of the Domino Sugar refinery in Williamsburg, Brooklyn, is poised to be approved by the city this week after the de Blasio administration struck a deal Monday to include more affordable housing units in the project.

The compromise signaled the end of a temporary impasse on the high-profile plan, which was abruptly held up last month by aides to Mayor Bill de Blasio, a left-leaning Democrat keen to demonstrate that he takes a different attitude toward real estate from his development-oriented predecessor, Michael R. Bloomberg.

The $1.5 billion project, which includes several slim and architecturally distinctive residential towers, office space for tech firms and an expansion of riverfront parkland, had been years in the making. But City Hall officials felt the number of affordable apartments set aside in the project — 660 units out of 2,300 total — was too little.

The negotiations had been viewed as a test case both for Mr. de Blasio, who turned his pledge to expand affordable housing into a populist rallying cry, and the city’s real estate establishment, which is wary about just how aggressively the mayor plans to negotiate with developers in order to keep that promise.