The answer is 2. Both countries had to approve the annexation.
By receiving approvement from its people, Texas also agree to follow all the laws/Regulations that imposed by the states.
After prolonged back and forth negotiations, Texas formally relinquished its sovereignty to the United States on February 19, 1846.