In a very unfair manner. They didnt follow the proper procedure. A biased committee created by Congress awarded the disputed votes to Hayes. The proper way would have been to invalidate their votes and throw the election into Congress like in 1800 or 1824.