Parameterized Verification and Synthesis for Distributed Agreement-Based Systems