U.S. President Donald Trump with first lady Melania Trump looking on in the Rose Garden of the White House November 26, 2019 in Washington, DC.

President Donald Trump has signed two bills supporting the Hong Kong protesters into law on Wednesday, despite Beijing's repeated objections.

"I signed these bills out of respect for President Xi, China, and the people of Hong Kong. They are being enacted in the hope that Leaders and Representatives of China and Hong Kong will be able to amicably settle their differences leading to long term peace and prosperity for all," Trump said in a statement released by the White House.

Trump signed the bills as he tries to reach a "phase one" trade deal with Beijing, which has repeatedly condemned the legislation as meddling in its domestic affairs. Hours later, China issued statements slamming the bills, saying they highlight the "sinister intentions and hegemonic nature of the United States," according to a CNBC translation.

On Thursday morning local time, the Hong Kong government "expressed strong opposition" to the bills becoming law and said it "extremely regrets the U.S. repeatedly ignoring Hong Kong's concern regarding the two bills," according to a CNBC translation.

"These two bills are an obvious intervention of Hong Kong's internal affairs, they are unnecessary and without grounds, they will also harm the relationship and interests between Hong Kong and the U.S.," the government said in a statement.

A government spokesman also said the bills will send the "wrong message" to protesters, "providing no help to ease Hong Kong's situation."

Congress sent the bills to the president's desk last week, after both chambers passed the legislation with overwhelming bipartisan support.