I believe the answer is: bills go through committees of Congress members who carefully study each new idea
After studying the idea, the Congress would make a consideration based on several factors, such as economic situation in the country, social/cultural situation in the country, foreign relations, and the available government budget.
After each members considering all this, the congress would put the decision on whether to pass legislation through voting.