Atlassian will lay off about 1,600 employees, 10 percent of staff, by June 30, redirecting savings to artificial intelligence and enterprise sales growth, CEO Mike Cannon-Brookes says.