Mayor Zohran Mamdani’s attempt to levy a new tax on luxury second homes faced new legal headwinds Tuesday after a Staten Island judge invalidated notices that have already been mailed to property owners and a billionaire casino owner teamed up with a former Trump cabinet secretary on a second pied-a-terre lawsuit.