Mayor Todd Gloria signed two pieces of legislation Thursday clearing the way for the city to invest roughly $293 million to repair or upgrade roads, stormwater systems, parks, recreation facilities and libraries, and to purchase public safety and waste-management equipment.