The correct response is:
They contain ideas that shape the character of the U.S. government.
Both the Mayflower Compact and the Declaration of Independence are foundational documents because they articulated principles of self-governance, democracy, and individual rights, which have significantly influenced the development of the United States government and its political values.