A controversial late penalty rescued a 2-2 draw for Ipswich against promotion rivals Middlesbrough to move Kieran McKenna's side back into the top two of the Championship table.