What compromise resolved the deadlock between large and small states over representation in Congress?