The city council of a city of the first class or any committee of the members thereof shall have power to compel the attendance of witnesses for the investigation of matters that may come before them. The president or acting president of the city council, or chairperson of such committee for the time being, may administer such requisite oaths. Such city council or committee shall have the same authority to compel the giving of testimony as is conferred on courts of justice.